package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 报告模版表 实体类
 * 表名：ra_report_template
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_report_template")
public class RaReportTemplate implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 报告模版类型（1、风险报告 2、防护措施报告 3、建议报告）
     * 默认值: 1
     */
    @Column(name = "template_type")
    private Byte templateType;
    
    /**
     * 模版编码
     */
    @Column(name = "template_code", length = 16)
    private String templateCode;
    
    /**
     * 数据json
     */
    @Column(name = "data_json", length = 65535)
    private String dataJson;
    
    /**
     * 报告地址
     */
    @Column(name = "report_url", length = 256)
    private String reportUrl;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaReportTemplate{" +
            "id=" + id +
            ", templateType=" + templateType +
            ", templateCode=" + templateCode +
            ", dataJson=" + dataJson +
            ", reportUrl=" + reportUrl +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 